<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>WangEditor 富文本编辑器</title>
</head>
<style type="text/css">
    *{padding: 0; margin: 0; list-style: none;}
</style>
<body>
<div id="we" style="width: 700px;">
    <p>欢迎使用 <b>wangEditor</b> 富文本编辑器</p>
</div>
</body>
<!-- 引入 wangEditor.min.js 官网地址：https://www.wangeditor.com/ -->
<script src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script>
<script type="text/javascript">
    const E = window.wangEditor;
    const editor = new E('#we');
    // 或者 const editor = new E( document.getElementById('div1') )
    editor.create();
</script>
</html>